/**
 * 
 */
package io.dora.spring.parser;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

/**
 * Spring配置XML扩展Namespace处理类
 * 
 * @author zhaohongbo
 *
 */
public class RegistryNsHandler extends NamespaceHandlerSupport {

	@Override
	public void init() {
		registerBeanDefinitionParser("registry", new RegistryDefinitionParser());
		registerBeanDefinitionParser("protocol", new ProtocolDefinitionParser());
		registerBeanDefinitionParser("provider", new ProviderDefinitionParser());
		registerBeanDefinitionParser("consumer", new ConsumerDefinitionParser());
	}

}
